package com.sf.dlb.service;

import com.sf.dlb.jpa.model.WalletEthAddressInfo;
import com.sf.dlb.jpa.repository.WalletEthAddressRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户eth地址表 service
 *
 * Created by jing.tan on 2018/5/21.
 */
@Service
public class BaseWalletEthAddressService {
    private Logger logger= LoggerFactory.getLogger(BaseWalletEthAddressService.class);
    @Autowired
    private WalletEthAddressRepository walletEthAddressRepository;

    /**
     * 获取公司钱包地址
     * @return
     */
    public WalletEthAddressInfo getCompanyETHAdress(){
        return walletEthAddressRepository.findByUserIdAndDelFlag("admin","0");
    }
}